package com.symone.crawler.util;

import java.util.Calendar;
import java.util.Date;

public class DateTimeUtil {

    public static Date yesterday(){
        Calendar ca = Calendar.getInstance();
        ca.setTime(new Date());
        ca.add(Calendar.DATE, -1);
        return ca.getTime();
    }
}
